package org.steven.crm.app.api.processor;

import com.steven.validate.StringValidator;
import com.steven.xweb.web.CheckList;
import org.steven.crm.app.api.processor.base.BaseProcessor;
import org.steven.crm.core.Constants;
import org.steven.crm.core.auth.UserAuthHandler;
import org.steven.crm.core.auth.UserSession;
import org.steven.crm.core.dto.user.LoginRequest;
import org.steven.crm.core.service.accesstoken.AccessTokenService;
import org.steven.crm.core.service.authcode.AuthCodeService;
import org.steven.crm.core.service.user.UserService;

import java.util.Map;

/**
 * @Author wuzw
 * @Date 2023/6/24 12:32
 * @Version 1.0
 */
public class UserProcessor extends BaseProcessor {
    private static UserService service = new UserService();


    private static AccessTokenService accessTokenService = new AccessTokenService();

    private static AuthCodeService authCodeService = new AuthCodeService();

    private static UserAuthHandler userAuthHandler = new UserAuthHandler();


    public void getInfoAction() throws Exception {
        String userId = UserSession.get().get("id");
        Map<String, Object> user = service.readExtView(userId);
        setObjectData(user);
    }
}
